import request from '@/utils/request'

// 查询盘点任务详情列表
export function listDetails(query) {
  return request({
    url: '/manage/details/list',
    method: 'get',
    params: query
  })
}

// 查询盘点任务详情详细
export function getDetails(id) {
  return request({
    url: '/manage/details/' + id,
    method: 'get'
  })
}

// 新增盘点任务详情
export function addDetails(data) {
  return request({
    url: '/manage/details',
    method: 'post',
    data: data
  })
}

// 修改盘点任务详情
export function updateDetails(data) {
  return request({
    url: '/manage/details',
    method: 'put',
    data: data
  })
}

// 删除盘点任务详情
export function delDetails(id) {
  return request({
    url: '/manage/details/' + id,
    method: 'delete'
  })
}
// 批量盘点
export function batchAddTaskDetails(data) {
  return request({
    url: '/manage/details/batch',
    method: 'put',
    data: data
  })
}
